package com.example.groupmeal.dao;

import com.example.groupmeal.entity.TmsBanner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TmsBannerDao extends JpaRepository<TmsBanner, Integer>, JpaSpecificationExecutor<TmsBanner> {

     List<TmsBanner> findAllByTypeAndStatus(Byte type, Byte status);

}
